package com.exam.itempool.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.exam.role.model.Student;
import com.exam.role.model.Teacher;

/**
 * Examinee entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Examinee implements java.io.Serializable
{

	// Fields

	private Integer id;
	private Exam exam;
	private Teacher teacher;
	private Student student;
	private Date createtime;
	private String flag;
	private Integer hallid;
	private String testno;
	private String ip;
	private Set grades = new HashSet(0);

	// Constructors

	/** default constructor */
	public Examinee()
	{
	}

	/** minimal constructor */
	public Examinee(Date createtime)
	{
		this.createtime = createtime;
	}

	/** full constructor */
	public Examinee(Exam exam, Teacher teacher, Student student, Date createtime, String flag, Integer hallid, String testno, String ip, Set grades)
	{
		this.exam = exam;
		this.teacher = teacher;
		this.student = student;
		this.createtime = createtime;
		this.flag = flag;
		this.hallid = hallid;
		this.testno = testno;
		this.ip = ip;
		this.grades = grades;
	}

	// Property accessors

	public Integer getId()
	{
		return this.id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Exam getExam()
	{
		return this.exam;
	}

	public void setExam(Exam exam)
	{
		this.exam = exam;
	}

	public Teacher getTeacher()
	{
		return this.teacher;
	}

	public void setTeacher(Teacher teacher)
	{
		this.teacher = teacher;
	}

	public Student getStudent()
	{
		return this.student;
	}

	public void setStudent(Student student)
	{
		this.student = student;
	}

	public Date getCreatetime()
	{
		return this.createtime;
	}

	public void setCreatetime(Date createtime)
	{
		this.createtime = createtime;
	}

	public String getFlag()
	{
		return this.flag;
	}

	public void setFlag(String flag)
	{
		this.flag = flag;
	}

	public Integer getHallid()
	{
		return this.hallid;
	}

	public void setHallid(Integer hallid)
	{
		this.hallid = hallid;
	}

	public String getTestno()
	{
		return this.testno;
	}

	public void setTestno(String testno)
	{
		this.testno = testno;
	}

	public String getIp()
	{
		return this.ip;
	}

	public void setIp(String ip)
	{
		this.ip = ip;
	}

	public Set getGrades()
	{
		return this.grades;
	}

	public void setGrades(Set grades)
	{
		this.grades = grades;
	}

}